package com.yuexiang.melodyhub.authserver.feign;

import com.yuexiang.melodyhub.common.dto.thirdParty.EmailSendEmail.response.EmailSendEmailResponse;
import com.yuexiang.melodyhub.common.result.ResultData;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("MelodyHub-Third-Party")
public interface ThirdPartyFeignService {

    @GetMapping("/email/sendemail")
    ResultData<EmailSendEmailResponse> sendEmail(@RequestParam("receiver") String receiver, @RequestParam("code") String code, @RequestParam("minute") Integer minute);

}
